package com.android.juliomedina;

import com.android.juliomedina.offline.Offline_activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

/**
 * 
 * @author globussoft
 */
public class FirstPage extends Activity {
	public Button btnClick, offline;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		btnClick = (Button) findViewById(R.id.buttonEnter);
		offline = (Button) findViewById(R.id.button1);
		btnClick.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent in1 = new Intent(FirstPage.this, MainActivity.class);
				startActivity(in1);

			}
		});
		offline.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent in2 = new Intent(FirstPage.this, Offline_activity.class);
				startActivity(in2);

			}
		});
	}

}
